<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:69:"D:\wamp\www\blog\public/../application/index\view\personal\index.html";i:1519729710;s:57:"D:\wamp\www\blog\application\index\view\index\header.html";i:1520344705;s:57:"D:\wamp\www\blog\application\index\view\index\footer.html";i:1519956669;}*/ ?>
<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="utf-8">
    <title>首页 </title>

    <!--移动设备优先-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="keywords" content="博客" />
    <meta name="description" content="我的生活，个人博客" />
    <link rel="stylesheet" type="text/css" href="/static/index/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="/static/index/css/my.css" />
    <link rel="stylesheet" type="text/css" href="/static/index/css/font_1477105914_3430886.css">
    <link rel="stylesheet" type="text/css" href="/static/index/css/timesroll.css">
    <script src="/static/index/js/jquery-1.10.1.min.js" ></script>
    <script src="/static/index/js/scrollReveal.js"></script>
    <script src="/static/index/js/modernizr.js"></script>
</head>
<body>


<div class="container">
    <nav class="navbar navbar-default">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                <span class="sr-only">导航</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand visible-xs" href="#">博客导航</a>
        </div>
        <div class="collapse navbar-collapse menu" id="bs-example-navbar-collapse-1">
            <div class="navbar-header navbar-left">
                <a class="navbar-brand" href="<?php echo url('index/index/index'); ?>">
                    <img alt="Brand" src="/static/index/images/logo.jpg" width="100">
                </a>
            </div>
            <ul class="nav navbar-nav navbar-right">
                <li class="menu-active"><a href="<?php echo url('index/index/index'); ?>">首页</a></li>
                <?php if(is_array($cate) || $cate instanceof \think\Collection || $cate instanceof \think\Paginator): $i = 0; $__LIST__ = $cate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$cate): $mod = ($i % 2 );++$i;?>
                <li class="dropdown ">
                    <a href="/"  data-hover="dropdown"><?php echo $cate['cname']; ?></a>
                    <ul class="dropdown-menu" role="menu">
                        <?php if(is_array($cate['cate2']) || $cate['cate2'] instanceof \think\Collection || $cate['cate2'] instanceof \think\Paginator): $i = 0; $__LIST__ = $cate['cate2'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$cate2): $mod = ($i % 2 );++$i;?>
                        <li><a href="/category/<?php echo $cate2['id']; ?>" ><i class="icon-ok-sign"></i> <?php echo $cate2['cname']; ?></a></li>
                        <li class="divider"></li>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                </li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
                <li class="menu-active"><a href="<?php echo url('index/personal/review'); ?>">留言</a></li>
                <li class="menu-active"><a href="http://nodejs.lyang.top">相册</a></li>
                <?php echo empty(\think\Session::get('user')) && empty(\think\Session::get('qq')) ? "<li><a href=".url('index/login/index').">登录/注册</a></li>" : ''; ?>
                <?php echo empty(\think\Session::get('user')) ? '' : "<li class='dropdown '><a href=".url('index/personal/index')."  data-hover='dropdown'><img width='20' height='20' src=".\think\Session::get('user.figureurl')." class='img-circle'>".\think\Session::get('user.nickname')."</a><ul class='dropdown-menu' role='menu'><li><a href=".url('index/personal/exit')." ><i class='icon-ok-sign'></i> 退出登录</a></li><li class='divider'></li></ul></li>"; ?>
                <?php echo empty(\think\Session::get('qq')) ? '' : "<li class='dropdown '><a href=''  data-hover='dropdown'><img width='20' src=".\think\Session::get('qq.figureurl')." class='img-circle'>".\think\Session::get('qq.nickname')."</a><ul class='dropdown-menu' role='menu'><li><a href=".url('index/personal/exit')." ><i class='icon-ok-sign'></i> 退出登录</a></li><li class='divider'></li></ul></li>"; ?>

            </ul>
            <div class="menu-bar"></div>
            <div class="menu-clean"></div>
        </div>
    </nav>
</div>
<!--头部结束-->
<div class="container">
    <div class="row">
       <div class="col-md-10">

           <form class="form-horizontal" enctype="multipart/form-data" method="post" action="<?php echo url('index/personal/edit'); ?>">
               <input type="hidden" name="id" value="<?php echo $customer['id']; ?>">
               <div class="form-group">
                   <label class="col-sm-2 control-label">头像：</label>
                   <div class="col-sm-10 head">
                       <label>
                           <img src="<?php echo $customer['headimg']===null?'/static/index/images/head.jpg' : '/static/upload/head/'.$customer['headimg']; ?>" width="85" height="85" alt="" class="img-circle">
                           <input type="file" name="head" style="opacity: 0">
                       </label>
                   </div>
               </div>

               <div class="form-group">
                   <label class="col-sm-2 control-label">用户名：</label>
                   <div class="col-sm-10">
                       <p class="form-control-static"><?php echo $customer['username']; ?></p>
                   </div>
               </div>
               <div class="form-group">
                   <label class="col-sm-2 control-label">邮箱：</label>
                   <div class="col-sm-10">
                       <p class="form-control-static"><?php echo $customer['email']; ?></p>
                   </div>
               </div>

               <div class="form-group">
                   <label class="col-sm-2 control-label">手机号：</label>
                   <div class="col-sm-10">
                       <p class="form-control-static"><?php echo $customer['tel']; ?></p>
                   </div>
               </div>

               <div class="form-group">
                   <label for="name" class="col-sm-2 control-label">昵称：</label>
                   <div class="col-sm-10">
                       <input type="text" class="form-control" name="name" id="name" value="<?php echo $customer['name']; ?>" placeholder="昵称">
                   </div>
               </div>

               <div class="form-group">
                   <label class="col-sm-2 control-label">性别：</label>
                   <div class="col-sm-10">
                       <label class="radio-inline">
                           <input type="radio" <?php echo $customer['sex']==1?'checked' : ''; ?> name="sex"  value="1"> 男
                       </label>
                       <label class="radio-inline">
                           <input type="radio" <?php echo $customer['sex']==0?'checked' : ''; ?> name="sex"  value="0"> 女
                       </label>
                   </div>
               </div>



               <div class="form-group">
                   <div class="col-sm-offset-2 col-sm-10">
                       <button type="submit" class="btn btn-default">保存修改</button>
                   </div>
               </div>
           </form>
       </div>
    </div>
</div>



<!--底部开始-->
<div class="container-foot">
   
    <div class="row foot-margin">
    	<div class="col-md-2 col-md-offset-5" style="line-height: 30px;">版权所有&copy;&nbsp;&nbsp;&nbsp;&nbsp;皖ICP备18000438号-1</div>
    </div>

</div>
<!--底部结束-->
<script src="/static/index/js/bootstrap.js"></script>
<script src="/static/index/js/common.js"></script>


</body>
</html>
